<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
		<title>求职者登录</title>
	</head>
	<body>
		<center><h1>求职者登录</h1></center>
		<hr>
		<c:if test="${!empty errorInfo || !empty sessionClosed}">
			<div class="alert alert-danger alert-dismissible fade in" role="alert">
		      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="  ">×</span></button>
		      <strong>${errorInfo }${sessionClosed}</strong>
		    </div>
	    </c:if>
	    <p></p>
		<form action="<%=request.getContextPath() %>/TalentServlet?command=login" method="post">
		  <div class="form-group">
		    <input type="text" class="form-control" id="code" name="code" value="${code='zs' }" placeholder="帐号...">
		  </div>
		  <div class="form-group">
		    <input type="password" class="form-control" id="password" name="password" value="admin" placeholder="密码...">
		  </div>
		  <div class="form-group">
		    <input type="text" class="form-control" id="validateCode" name="validateCode" placeholder="验证码..." style="width: 300px; display: inline;" maxlength="4">
		    <img src="<%=request.getContextPath() %>/kaptcha.jpg" width="90px" height="30px" style="cursor: pointer;" id="pic" onclick="changePic();" title="看不清？换一个">
		  </div>
		  <div class="checkbox">
		    <label>
		      <input type="checkbox"> 记住密码
		    </label>
		  </div>
		  <button type="submit" class="btn btn-primary">系统登录</button>
		  <button type="button" class="btn btn-default" onclick="location='<%=request.getContextPath() %>/PositionServlet?command=list'">招聘主页</button>
		</form>
		<script src="<%=request.getContextPath() %>/static/common/plugin/jquery.min.js"></script>
		<script src="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
		<script>
		var changePic = function() {
			document.getElementById('pic').src = '<%=request.getContextPath() %>/kaptcha.jpg?time='+ new Date().getTime();
		}
		</script>
	</body>
</html>